using UnityEngine;
using System.Collections;

[RequireComponent(typeof(Camera))]
public class lwSizeAdapter : MonoBehaviour
{
	public static float s_DefaultSize = 384.0f;

	private float m_fScreenH = 0.0f;

	private Camera m_Camera = null;

	void Awake()
	{
		m_Camera = GetComponent<Camera>();
		
		m_fScreenH = Screen.height;
		if (m_fScreenH < s_DefaultSize*2)
			m_Camera.orthographicSize = m_fScreenH/2;
		else
			m_Camera.orthographicSize = s_DefaultSize;
	}
}
